<?php

namespace app\pc\controller;
use app\base\controller\Base;
use think\Request;
use think\Cache;
use think\Config;
use think\Session;


// 充值 提现记录
class Secure extends Base
{
    public  $model;
    public function __construct()
    {
        $this->model = model("UsersInvest");
        parent::__construct();
        $this->BaseWhere = ['a.user_id'=>$this->sidRows['id']];
    }


    /**
     *  个人中心详情
     */
    public function show(){


        $where = [];
        $where = array_merge($this->BaseWhere,$where);
        $res =   $this->model->PcPage($where);

        if(empty($res)){
            return failJson("暂无个人记录");
        }
        $res['res'][0]['mobile'] = $this->sidRows['mobile'];
        return   resJson(1,$this->ecLang("query"),$res['res'],$res['pageInfo']);
    }


    /**
     *  安全中心信息
     */
    public function info(){

        $where = [];
        $where = array_merge($this->BaseWhere,$where);
        $res =   $this->model->infoAll($where);
        if(empty($res)){
            return failJson("暂无信息");
        }
        return  sucessJson("成功",$res);
    }


}
